import request from '@/utils/request'

/**
 * 视频记录接口
 */
const VideoRecordApi = {
    /**
     * 视频记录列表
     */
    lists(params: {
        page_no?: number;
        page_size?: number;
        type?: string;
        prompt?: string;
        user_sn?: string;
        status?: number;
        start_time?: string;
        end_time?: string;
    }): Promise<any> {
        return request.get({
            url: '/apply/video/record/lists',
            params
        })
    },

    /**
     * 视频记录删除
     */
    delete(id: number, reason?: string): Promise<any> {
        return request.post({
            url: '/apply/video/record/delete',
            params: {
                id,
                reason
            }
        })
    }
}

export default VideoRecordApi
